import { Controller, Get } from '@midwayjs/core';

// 控制器
@Controller('/user')
export class AuthController {
  @Get('/info')
  async info() {
    return {
      code: 0,
      data: {
        id: 0,
        realName: 'Vben',
        roles: ['super'],
        username: 'vben',
      },
      error: null,
      message: 'ok',
    };
  }
}
